package netty.serializable.objectdecoderandencoder.server;

import netty.serializable.objectdecoderandencoder.client.OrderReq;

public class OrderObjectConvert {
	
	private final static String SUCCESS = "0";
	
	public static OrderResp toResp(OrderReq req){
		OrderResp resp = new OrderResp();
		resp.setOrderId(req.getOrderId());
		resp.setOrderStatus(SUCCESS);
		resp.setOrderDesc("order count " + req.getOrderCount());
		return resp;
	}
}
